<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-type-edit" th:object="${tbTerminalType}">
            <input name="ttid" th:field="*{ttid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端型号名称：</label>
                <div class="col-sm-8">
                    <input name="terminalTypeName" th:field="*{terminalTypeName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端型号编号：</label>
                <div class="col-sm-8">
                    <input name="terminalTypeNumber" th:field="*{terminalTypeNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端种类：</label>
                <div class="col-sm-8">
                    <input name="terminalKind" th:field="*{terminalKind}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端品牌：</label>
                <div class="col-sm-8">
                    <input name="terminalBrand" th:field="*{terminalBrand}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作电压：</label>
                <div class="col-sm-8">
                    <input name="workingVoltage" th:field="*{workingVoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">固件版本号：</label>
                <div class="col-sm-8">
                    <input name="firmwareName" th:field="*{firmwareName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">功耗：</label>
                <div class="col-sm-8">
                    <input name="powerDissipation" th:field="*{powerDissipation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">休眠电池流：</label>
                <div class="col-sm-8">
                    <input name="dormantElectricity" th:field="*{dormantElectricity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">内置电池容量：</label>
                <div class="col-sm-8">
                    <input name="batteryCapacity" th:field="*{batteryCapacity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="manufacturerName" th:field="*{manufacturerName}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/type";
        $("#form-type-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-type-edit').serialize());
            }
        }
    </script>
</body>
</html>